package com.zhs.gccs.model;

import androidx.annotation.NonNull;

import java.io.Serializable;

public class CheckBoxModel implements Serializable {
    private String name;
    private String title;
    private String value;
    private boolean selected;
    private String extra;
    private boolean fixed;

    private boolean sort = false;
    private boolean asc = false;
    private String type;//String  Number
    private int order;//



    @NonNull
    @Override
    public String toString() {
        return getValue();
    }

    public CheckBoxModel(String title, String value, boolean selected) {
        this.title = title;
        this.value = value;
        this.selected = selected;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public boolean isFixed() {
        return fixed;
    }

    public void setFixed(boolean fixed) {
        this.fixed = fixed;
    }

    public boolean isSort() {
        return sort;
    }

    public void setSort(boolean sort) {
        this.sort = sort;
    }

    public boolean isAsc() {
        return asc;
    }

    public void setAsc(boolean asc) {
        this.asc = asc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
